package org.example.zrccddllljh.Mapper;

import org.apache.ibatis.annotations.*;
import org.example.zrccddllljh.Pojo.Doctor;
import org.example.zrccddllljh.Pojo.Nurse;

import java.util.List;

@Mapper
public interface NurseMapper {
    @Select("select * from nurse;")
    List<Nurse> list();

    
@Insert("insert into nurse(name,age,level,conscientious,state,create_time,update_time) values(#{name},#{age},#{level},#{conscientious},#{state},#{createTime},#{updateTime})")
    void add(Nurse nurse);
    @Update("update nurse set name=#{name} , age=#{age},level=#{level}" +
            ",conscientious=#{conscientious} ,state=#{state} ,update_time=#{updateTime} where id=#{id} ;")
    void updata(Nurse nurse);
@Delete("delete from nurse where id=#{id};")
    void deleteById(Integer id);

    List<Nurse> getOrderInfoList();
}
